package com.cuijq.ms.observer.v1;

/**
 * @author by CuiJQ
 * @Classname Demo
 * @Description Demo Description
 * @Date 2021/5/28 14:59
 */
public class Demo {

  public static void main(String[] args) {
    ConcreteSubject subject = new ConcreteSubject();
    subject.registerObserver(new ConcreteObserverOne());
    subject.registerObserver(new ConcreteObserverTwo());
    subject.notifyObservers(new Message());
  }
}
